package com.kai.service.exception;

import com.kai.service.enums.ResultCodeEnum;
import lombok.Getter;
import org.springframework.security.core.AuthenticationException;

public class TokenValidationException extends AuthenticationException {

    private static final long serialVersionUID = -2586303968701846716L;

    @Getter
    private final int errorCode = ResultCodeEnum.TOKEN_ERROR.getCode();

    @Getter
    private final String errorMsg;

    public TokenValidationException(String errorMsg){
        super(errorMsg);
        this.errorMsg = errorMsg;
    }
}
